package com.myspring.controller;


import com.myspring.service.MyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = {"/mycontroller10"})
public class MyController10 {
    @Autowired
    private MyService myService;

    @RequestMapping(value = "/mymethod10/{id}/{mdcontent}")
    public ResponseEntity<Boolean> mymethod10(@PathVariable(value = "id") Integer id,@PathVariable(value = "mdcontent") String mdcontent) throws Exception {
        this.myService.updateArticle(id,mdcontent);
    return new ResponseEntity<Boolean>(true, HttpStatus.OK);
    }

}
